﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Testmatrix.Console
{
    public class IOHelper
    {
        public static void Log(string strLog, string logFile)
        {
            StreamWriter fs = null;
            try
            {
                fs = new StreamWriter(logFile, true, Encoding.GetEncoding("gb2312"));
                fs.WriteLine(strLog);
                fs.Close();
                fs = null;

            }
            catch (IOException ex)
            {
                return;
            }
        }
    }
}
